import React from 'react';
import { Route, Link, Redirect } from 'react-router-dom'

import MakeMoney from './workPlace/MakeMoney'
import Getup from './workPlace/Getup'

function Workplace() {
  return (
    <div>
      <Redirect to="/workplace/makeMoney" />
      <ul>
        <li>
          <Link to="/workplace/makeMoney">程序员赚大钱秘籍</Link>
        </li>
        <li>
          <Link to="/workplace/getUp">程序员早起秘籍</Link>
        </li>
      </ul>
      <div style={{ paddingLeft: '20px' }}>
        <Route path="/workplace/makeMoney/" component={MakeMoney} />
        <Route path="/workplace/getup/" component={Getup} />
      </div>
    </div>
  )
}

export default Workplace